package com.spx.kernel.ui.session;

import org.eclipse.jface.action.IStatusLineManager;
import com.spx.kernel.StatusSessionHolder;

public class StatusDetails implements StatusSessionHolder
{

	

	

	public StatusDetails()
	{
	
	}

	@Override
	public void setStatusLine(IStatusLineManager statusLine)
	{

		StatusDetailsEndPoint.getInstance().setStatusLine(statusLine);
	}

	public IStatusLineManager getStatusLine()
	{
		return StatusDetailsEndPoint.getInstance().getStatusLine();
	}

}


class StatusDetailsEndPoint implements StatusSessionHolder
{
	private IStatusLineManager statusLine;
	
	private static StatusDetailsEndPoint instance;

	private StatusDetailsEndPoint()
	{
		
	}

	public IStatusLineManager getStatusLine()
	{
		return statusLine;
	}

	@Override
	public void setStatusLine(IStatusLineManager statusLine)
	{
		this.statusLine=statusLine;
		
	}

	static StatusDetailsEndPoint getInstance()
	{
		if (instance == null)
		{
			instance = new StatusDetailsEndPoint();
		}
		return instance;
	}
	
}

